<#assign className = table.classNameBo>

<#assign classNameLower = className?uncap_first>   
package ${basepackage}.${persistence};

import org.apache.ibatis.annotations.Param;
import com.hp.up.business.repository.BaseRepository;
import ${basepackage}.core.Entity.${className};
import org.springframework.stereotype.Component;
import java.util.List;

@Component
public interface ${className}Repository extends BaseRepository<${className}>{

	/**
	 * 根据条件获取翻页列表
	 */
	List<${className}> getPage(@Param(value = "${classNameLower}") ${className} ${classNameLower});

	/**
	 * 根据条件来获取总数量
	 */
	long getCount(@Param(value = "${classNameLower}") ${className} ${classNameLower});
	
	<#list table.columns as column>
		<#if (column.unique && !column.pk)>
		${className} findBy${column.columnName}(${column.possibleShortJavaType} ${column.columnNameFirstLower});
		</#if>
	</#list>

}
